package com.jmb.apiplatform.constant;

public final class Constants {
    // 状态常量
    public static final Byte STATUS_ACTIVE =0;

    // 类型常量
    public static final Byte TYPE_CONNECT_TIMEOUT = 3;
    public static final Byte TYPE_READ_TIMEOUT = 4;


    // 默认超时时间常量
    public static final Integer DEFAULT_CONNECT_TIMEOUT =30 * 1000; // 示例值
    public static final Integer DEFAULT_READ_TIMEOUT = 30 * 1000; // 示例值
    public static final Integer REDIS = 60*60*24;

    // token常量
    public static final String TOKEN_PREFIX = "login:";
    // 签名常量
    public static final String SIGNIFY = "SVRIRUlNQQ==";
    // 过期时间
    public static final long EXPIRE = 43200000L;

    // 设置浏览器标头信息
    public static final String[] DEFAULT_USER_AGENT = {"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"};
    public static final String[] DEFAULT_ACCEPT = {"application/json, text/plain, */*"};
    public static final String[] DEFAULT_ACCEPT_ENCODING = {"gzip,deflate,br,zstd"};
    public static final String[] DEFAULT_ACCEPT_LANGUAGE = {"zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"};


    // 私有构造函数，防止实例化
    private Constants() {
        throw new IllegalStateException("Utility class");
    }

}
